<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <!-- <link href="../static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="../static/bootstrap/css/docs.css" rel="stylesheet" type="text/css"/>
    -->
   <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>
   <link href="/static/viewback/css/mycss.css" rel="stylesheet" type="text/css"/>
   <title>数据备份与恢复</title>
</head>
<body>
<div class="header"></div>
<include file="public:header"/>
<ul class="breadcrumb">
    <li>
      <a href="/Admin/user/userList" title="后台管理"><i class="icon-home"></i></a> <span class="divider">/</span>
    </li>
    <li>
      <a href="/Admin/forum/forumList" title="系统管理">系统管理</a> <span class="divider">/</span>
    </li>
    <li class="active" title="数据备份与恢复">数据备份与恢复</li>
 </ul>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span2"> 
                <include file="public:leftbar"/>
            </div>
            <div class="span10 well">
                <fieldset>
                <legend><h3>数据备份与恢复</h3></legend>
                    <form class="form-horizontal form-inline" action="/Admin/forum/dataBack" method="post">
                        <div class="control-group">
                            <label for="data-copy" class="control-label">数据备份</label>
                            <div class="controls">
                                <input readonly id="data-copy" class="span4" name="filename" type="text" value="<php>echo date('Ymd-his');</php>"/>
                                <input name="submit" type="submit" value="数据备份" class="btn btn-primary"/>&nbsp;{$msg}
                            </div>
                        </div>
                    </form> 
                    <form action="/Admin/forum/dataRecover" method="post" class="form-horizontal form-inline">
                    <div class="control-group">
                        <label class="control-label" for="data-reverse">数据恢复</label>
                        <div class="controls">  
                            <!--<input id="data-reverse" name="data-reverse" type="text" class="span4" value="databack.sql"/>
                            <input name="submit" type="submit" value="数据恢复" class="btn btn-danger"/>-->
                            <select id="databack" name="databack" class="span4">

                            </select>
                            <input type="submit" value="数据恢复" class="btn btn-danger"/>&nbsp;{$flag}
                        </div>
                    </div>
                    </form>
                </fieldset>
            </div>
        </div>
</div>
<div class="footer"></div>
<include file="public:footer"/>
<!--<script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>-->
<script type='text/javascript' src='/static/viewback/js/jquery-1.8.3.js'></script>
<script type='text/javascript'>
    $(document).ready(function(){
            $.ajax({
            url:'/Admin/forum/getFileList',
            data:'',
            dataType:'json',
            type:'post',
            success:function(o){
                var len=o.length;
                for(var i=0;i<len;i++){
                    var option="<option value='"+o[i]+"'>"+o[i];
                    //alert(val);
                    $('#databack').append(option);
                }
            },
            error:function(){
                
            }
        });
        
       
    });
</script>
</body>
</html>

